Skip to content

Deck: guest sign-up path, boot route race, keyboard and plan-consistency fixes - #139

Merged
Darknode-Official merged 1 commit into
mainfrom
feat/product-polish
Nov 26, 2026
Merged

Darknode-Official merged 1 commit into
mainfrom
feat/product-polish

Conversation

@Darknode-Official

Copy link
Copy Markdown
Owner

Product-layer audit of the Deck (guest /?app=1 and Test Mode, 1440x900 and 390x844). Fixes ranked by impact; hosting only, no Worker or rules change, no TOS change.

Fixed

  1. Deck jumped back to the Overview after load (the reported lead, real). The boot route (go(initial)) runs in a requestAnimationFrame; a background tab gets no frames, so a page or tool opened before the first frame was replaced by the restored one when the tab became visible. Reproduced by delaying rAF 3s: Monitors -> Overview at +3s. Boot now stands down when anything was opened already (navSeq in deck-ui.js). Deep links, /check/<domain>, locked links -> Plans, back/forward re-checked.
  2. Guest and Test Mode had no way to get an account, and server features dead-ended. The landing's "See the Deck" opens the guest Deck, but:
    • Monitors showed "Sign in to use monitors." with no action; Deadlines showed the same monitors text.
    • Plans "Request upgrade" opened the request dialog, then failed with "Couldn't send the request. Try again."
    • Settings said the digest is "Sent to test@darknode.ai"; the account card listed test@darknode.ai as if signed in.
      Now these say what needs an account and offer Create a free account, which opens the sign-up form (/?signup=1, handled in auth.js). The account menu reads "Not signed in" with a sign-up item; "Sign out" reads "Leave guest mode".
  3. Plan consistency: "Create a workspace" was offered on Free and Pro. The Team page (members) is hidden below Team and worker/plan.js refuses teamSync below Team, so the workspace could neither sync nor add members. The menu now offers it where the Team page is, and points at Plans otherwise (docs FAQ already says team workspaces are Team).
  4. Keyboard / screen reader. Two invisible tab stops sat before the first Deck control (the signed-out header brand and the scroll-to-top button behind the Deck), "Skip to content" moved focus to the empty #view, and there was no main landmark. The shell behind the Deck is now inert while the Deck is the page (restored on teardown), the visible page is role=main, and the skip link focuses it. Also: empty <th> labelled, empty role=tooltip rail flyout made aria-hidden (nav buttons already carry aria-label).
  5. Overview KPI row left two empty columns when there are no findings yet; the four tiles now fill the row.

Verified

  • npm test: 5156 passed, 0 failed. npm run release:check: READY. darknode-scan --fail-on high --diff-base origin/main: gate passed.
  • Local release build served with firebase serve, Playwright with service workers blocked, guest and Test Mode at 1440x900 and 390x844: every sidebar scene (switch 5-60 ms, no overflow, no console errors), first-run check on example.com, Ctrl+K, Ask AI, workspace switcher, account menu, Settings, Plans, all ten Quick Checks (frames ready in about 1 s, inputs empty). axe on the Overview: no violations besides colour contrast, which axe measures on the light design under the Deck's invert filter (the rendered dark colours pass).

Not changed (needs an owner or the landing/check owner)

  • public/js/check/first-run.js (not in this PR's scope): for a guest, "Watch this domain" fails with a sign-in message and a Try again button that cannot succeed. It should offer sign-up instead (the Deck now passes nothing new to it; a small change there).
  • Tool Library cards are role=button with a pin button inside (axe nested-interactive, 264 nodes): needs a card markup change.

…ncy fixes

- Boot route: the page restored at boot waited for a frame and then replaced anything
  opened before it ran (a background tab gets no frames), so the Deck jumped back to the
  Overview. It now stands down when a page or tool was already opened.
- Guest and Test Mode (no account): Monitors, Deadlines, the weekly digest and upgrade
  requests explained nothing or failed after the click ("Sign in to use monitors." on the
  Deadlines page, "Couldn't send the request. Try again." on Plans). They now say what needs
  an account and offer "Create a free account", which opens the sign-up form (/?signup=1).
  The account menu says "Not signed in" and offers sign-up; "Sign out" reads "Leave guest mode".
- Workspace menu: "Create a workspace" is offered only where the Team page is (Team plan),
  matching worker/plan.js teamSync; below Team it points at Plans.
- Keyboard and screen readers: the signed-out shell behind the Deck is inert (two invisible
  tab stops before the first Deck control), the showing page is the main landmark, and
  "Skip to content" focuses it instead of the empty #view. Empty table header and an empty
  role=tooltip fixed.
- Overview: with no findings yet, the four remaining KPI tiles fill the row instead of
  leaving two empty columns.
@Darknode-Official
Darknode-Official merged commit 42d2dcd into main Nov 26, 2026
10 checks passed
@Darknode-Official
Darknode-Official deleted the feat/product-polish branch November 26, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant